<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
  
  <head>
    
    <%@ include file="/WEB-INF/include/meta.jsp"%>
    <%@ include file="/WEB-INF/include/css.jsp"%>
    
  </head>
  <!-- end header -->
  <body>
    <div class="page-group">
      <div class="page page-current">
        <header class="bar bar-nav shop-header">
          <h1 class="title">基金结果</h1>
        </header>
        <div class="content">
            
            <c:choose>
              <c:when test="${empty foundationRecord}">
                <p class="text-center" style="margin: 4rem 1rem 0 1rem; color: #999;">您还没参与此私募，请点击按钮去参与....</p>
                <div class="content-block">
                  <p><a href="${ctx.host}/foundations/join" class="button button-fill button-error button-big button-block button-submit" style="margin: 0px auto; width: 70%;">去参与</a></p>
                </div>
              </c:when>
              <c:otherwise>
                <p class="text-center">认领人：${foundationRecord.name}&nbsp;-&nbsp;${foundationRecord.mobile}</p>
                <p class="text-center">认领金额：<fmt:formatNumber value="${foundationRecord.amount / 10000.0}" pattern="0.0" />万</p>
                <div class="content-block">
	              <p><a href="${ctx.host}/foundations/join?mobile=${foundationRecord.mobile}" class="button button-fill button-error button-big button-block button-submit" style="margin: 0px auto; width: 70%;">重新填写</a></p>
	      	    </div>  
              </c:otherwise>
            </c:choose>
            
        </div>
        
      </div>
    </div>
    
    <%@ include file="/WEB-INF/include/script.jsp"%>
    
  </body>
</html>